package com.example.SBootDemo.service.Interface.function;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.data.domain.Page;

import com.example.SBootDemo.ExceptionHandel.exception.Myexception;
import com.example.SBootDemo.Util.PageInfo;
import com.example.SBootDemo.model.function.user;

public interface userinterface {
	
	public int addUser(user user);
	public void deleteUser(List<Integer> listid)throws Myexception;
	public user getUser(int id);
	public int getUsers(int page,HttpServletRequest request) throws Myexception;
	public void addpage(HttpServletRequest request);
	public void updatepage(HttpServletRequest request,int id);
	public void updateUser(user user, HttpServletRequest request) throws Myexception;
	public user findByUsername(String username);

}
